require('../css/commCss/normalize.css')
require('../css/commCss/reset.css')
require('../css/commCss/property.css')
require('../css/commCss/basic.css')
require('../libs/iconfont/iconfont.css')
require('../css/sportsIng.less')


document.addEventListener('DOMContentLoaded',function(){
    let stopBtn = document.querySelector('.stopBtn')
    let goOn = document.querySelector('.goOn')
    let stopDiv = document.querySelector('.stop')
    let operateDiv = document.querySelector('.operate')
    let map = document.querySelector('.map')
    let over = document.querySelector('.over')
    // 点击暂定按钮快速隐藏当前元素父盒子
    stopBtn.addEventListener('click',function(){
        console.log(1);
        operateDiv.style.visibility = 'visible'
        stopDiv.style.visibility = 'hidden'
    })
    //点击继续按钮隐藏当前元素父盒子
    goOn.addEventListener('click',function(){
        console.log(1);
        operateDiv.style.visibility = 'hidden'
        stopDiv.style.visibility = 'visible'
    })

    // 点击地图图标查看以跑路线和当前位置
    map.addEventListener('click',function(){
        location.href = './sportsMap.html'
    })

    //点击结束按钮跳转至地图界面
    over.addEventListener('click',function(){
        location.href = './sportsMap.html'
    })
})
